<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /*
        转换为false的情况：0 ， 空字符串，null,undefined
        */
       var a = 0;
       if(a){
        console.log("真");
       }
       else{
        console.log("假");
       }
    </script>
</body>
</html>